#import "MapAppAppDelegate.h"
#import "MapViewController.h"

/**
 * Initializes and displays the main view controller for this application.
 * 
 * @author      Justin Hollander
 * @version     0.2.0 
 * @since       0.1.0
 */
@implementation MapAppAppDelegate

@synthesize window;
@synthesize mapViewController;
@synthesize navigationController;

/**
 * Initializes basic UIWindow with main components then sets to visible.
 *
 * This is all done programically without the use of nibs.
 *
 * @param application  the application that has just launched
 */
- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	
	window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	//window.backgroundColor = [UIColor redColor];
	mapViewController = [[MapViewController alloc] init];
	navigationController = [[UINavigationController alloc] initWithRootViewController:mapViewController];
	[window addSubview:navigationController.view];
	//[navigationController seth
	//[window addSubview:mapViewController.view];
    [window makeKeyAndVisible];
}

- (void)dealloc {
	[mapViewController release];
	[navigationController release];
	
    [window release];
    [super dealloc];
}

@end